package com.nercel.dsj.gksales.model.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.nercel.dsj.gksales.model.BalanceRecordType;
import lombok.Data;

import java.util.Date;

@Data
public class BalanceRecord {

    private Integer id;

    private Integer srcId;

    private Integer targetId;

    private Integer userAmount;

    private Integer targetAmount;

    private BalanceRecordType type;

    private Integer amount;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    private String remark;

    public BalanceRecord(){

    }

    public BalanceRecord(Integer srcId, Integer targetId, Integer userAmount, Integer targetAmount, BalanceRecordType type, Integer amount, Date createTime, String remark) {
        this.srcId = srcId;
        this.targetId = targetId;
        this.userAmount = userAmount;
        this.targetAmount = targetAmount;
        this.type = type;
        this.amount = amount;
        this.createTime = createTime;
        this.remark = remark;
    }

}
